package com.zretc.blog.dao;

import com.zretc.api.pojo.Blog;
import com.zretc.api.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface CommentMapper {
    ArrayList<Comment> getCommentList(Integer blogId);
    ArrayList<Comment> getCommentByUser(Integer commentatorId);
    void addComment(Comment comment);
    void deleteComment(Integer id);
    void setCommentPass(Comment comment);
    void setCommentDeleted(Comment comment);

    void deleteCommentByBlog(Integer blogId);
    void likeComment(Integer id);
    Comment getCommentById(Integer id);
}
